<template>
    <div>
    </div>
</template>
<script>
import { mapMutations } from 'vuex'
import ScaleLoader from 'vue-spinner/src/ScaleLoader.vue'
export default {
    data() {
        return {
        }
    },
    methods: {
        ...mapMutations([
            'RECORD_SAMPLE_ID',
            'UPDATE_SHOW_LOADING',
        ]),
        async initialization() {
            this.UPDATE_SHOW_LOADING(false)
            let type = this.$route.query.type
            let id = this.$route.query.id
            this.RECORD_SAMPLE_ID(id)
            this.$router.push( { name: `${type}Detail` } )
        }
    },
    created() {
       this.initialization()
    } 
}
</script>
<style scoped>
.v-spinner{
    width: 50px;
    height: 20px;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
</style>

